/* ======================================================= */
/**
 * File : IsiHiking.java Date : Jan 23, 2010 at 4:57:59 PM
 */
/* ======================================================= */
package fr.isima.gui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import fr.isima.R;

/* ======================================================= */
/**
 * @author daniel
 */
/* ======================================================= */
public class IsiHiking extends Activity
{
    /** Debug Tag */
    private static final String TAG = "IsiHiking";

    private Button              viewTracks;

    private Button              newTrack;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        newTrack = (Button) (Button) findViewById(R.id.buttonNewTrack);

        newTrack.setOnClickListener(new OnClickListener()
        {

            public void onClick(View v)
            {
                Intent preferences = new Intent(v.getContext(),
                        TrackPreferences.class);
                startActivity(preferences);
            }
        });

        viewTracks = (Button) findViewById(R.id.buttonViewTracks);

        viewTracks.setOnClickListener(new OnClickListener()
        {

            public void onClick(View v)
            {
                Intent selection = new Intent(v.getContext(),
                        TrackSelection.class);
                startActivity(selection);
            }
        });

    }

}